package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;
import cn.edu.sdjzu.xg.eagle.util.Pagination;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

/**
 * @author tg.si@188.com
 * @project xg23
 * @date 2025/3/28
 */
public interface TeacherService {

    Collection<Teacher> findAll(List<Condition> conditionList, Pagination pagination)
            throws SQLException, BaseException, InvocationTargetException;
    boolean add(Teacher teacher) throws SQLException, BaseException, InvocationTargetException;
    Teacher find(Long id) throws SQLException, BaseException, InvocationTargetException;
    Teacher find(Connection connection, Long id) throws SQLException, BaseException, InvocationTargetException;

}
